{layout name="passport:layout" /}
<div class="titlebar"><i class="iconfont icon-xiugaidenglumima"></i>修改安全密码</div>
<div class="tipbox tipbox-message mb10">
    安全密码注意用于设置帐号的关键信息使用时如充值、提现等
</div>
<form id="form" action="{:url('passport.member/safepassword')}" method="post">
<input type="hidden" name="__token__" value="{$Request.token}" />
<table class="formtable"> 
    {if $user.safe_password}
    <tr>
        <th>安全密码:</th>
        <td>
            <input datatype="*" placeholder="请输入现安全密码" datatype="s6-18" class="input" type="password" name="safe_password" />
        </td>
    </tr>
    {else}
    <tr>
        <th>登录密码:</th>
        <td>
            <input datatype="*" placeholder="请输入现登录密码" datatype="s6-18" class="input" type="password" name="login_password" />
        </td>
    </tr>
    {/if}
    <tr>
        <th>新的安全密码:</th>
        <td>
            <input placeholder="请输入安全密码" nullmsg="请设置密码" datatype="s6-18" class="input" type="password" name="password" />
            <span class="gray">限制6位数字</span> 
        </td>
    </tr>
    <tr>
        <th>验证安全密码:</th>
        <td><input placeholder="请输入验证安全密码" errormsg="验证密码不一致" datatype="*" class="input" type="password" name="repassword" /></td>
    </tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" value="确定修改" class="button submit" />
            <input type="reset" value="重置" class="button button-blank"/>
        </td>
    </tr>
</table>
</form>
<script type="text/javascript">
Do('base','layer','form',function(){
    $('#form').isForm();
})
</script>